package crudfx.container;
import crudfx.interop.*;
import javax.swing.*;
import javax.swing.border.*;
import javafx.scene.paint.*;
import crudfx.data.*;
/**
 * @profile desktop
 * @author Sergey Surikov
 */
public class Tab{
    public var text:String="Tab" on replace {parent.adjustTab(this);};
    public var tooltip:String="Tab" on replace {parent.adjustTab(this);};
    public var icon:Icon;
    public var content:UIComponent;
    public var parent:TabbedPanel;
    public function highlight(s:String):Boolean{
            return content.highlight(s);
        }
    public function gather():DataTree{
        var me:DataTree=DataTree{ name:"Tab" };
        insert content.gather() into me.node("content").children;
        return me;
        }
    }
